//
//  VideoCell.swift
//  amicool
//
//  Created by 方君竹 on 2017/6/12.
//  Copyright © 2017年 fjz. All rights reserved.
//

import UIKit

class VideoCell: UICollectionViewCell {
    
    @IBOutlet weak var img: UIImageView!
    
    @IBOutlet weak var author: UILabel!
    
    @IBOutlet weak var title: UILabel!
    
    //让图标下面变得半透明，我喜欢橙色！
    override func awakeFromNib() {
        super.awakeFromNib()
        let gradientLayer = CAGradientLayer()
        gradientLayer.frame = CGRect(x: 5, y:
            (UIScreen.main.bounds.width-40)/2*0.618, width:
            self.bounds.width,height: 30)
        gradientLayer.colors = [UIColor.clear.cgColor, UIColor.orange.cgColor]
        self.layer.addSublayer(gradientLayer)
    }
    
}
